package com.dm.cloud.core.mode;

import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @Author sg
 * @ClassName SearchRequestPage.java
 * @desc
 * @Date 2021/08/18 17:46
 */

@Data
@EqualsAndHashCode
@NoArgsConstructor
@Schema(description = "基础分页查询请求")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class SearchRequestPage<T> {
    private T searchParam;
    /**
     * 分页信息
     */
    @Schema(description = "分页参数")
    private PaginationParam pageParam;

    @Schema(description = "排序方式,按顺序优先: 例如 updateTime desc . updateTime asc")
    private List<String> sort;
}
